package bluetooth.data;

import java.util.Arrays;

import bluetooth.push.notification.Push;
import bluetooth.push.notification.UrbanAirshipClient;



public final class SendNotificationToAllDevices {

public static void sendListToAllDevices (){
		
		Push push = new Push();
        push.setAliases(Arrays.asList("39901"));
        // For Android
        bluetooth.push.notification.Android android = new bluetooth.push.notification.Android();
        android.setAlert("Tap to open data list...");
        android.setExtra(DeserializeData.getJsonFromUpdatedDataList());
        push.setAndroid(android);
        UrbanAirshipClient uac = new UrbanAirshipClient("oFFvZuQGTBu54RS5kdbjdg","JJwb1lzfRLOJ50PNHnOJnw");
        System.out.println(uac.getAllApids().get(0));
        push.setApids(uac.getAllApids());
        uac.sendPushNotifications(push);
		
	}
}
